﻿<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<style type="text/css">
.main-cont-body {
	height: 100%
}
</style>
<script type="text/javascript">
	var knowledgeCategoryTree_Onclick = function(event, treeId, treeNode) {

		var keyword = isperp.getWindow("knowledgeSearchIframe").getKeyword();

		$("#knowledgeSearchIframe").prop("src", "knowledge2/knowledgeSearch2/searchResultView?categoryId=" + treeNode.id + "&keyword=" + keyword);

	};
</script>

<section class="frame-main" style="height: 100%;">

	<div id="dvFrameMainNav" class="frame-main-nav" style="height: 100%">
		<isperp:tree id="knowledgeCategoryTree" title="服务交付物分类">
			<isperp:async enable="true"
				url="knowledge2/knowledgeCategory2/getTree">
			</isperp:async>
			<isperp:callback onClick="knowledgeCategoryTree_Onclick">
			</isperp:callback>
		</isperp:tree>
	</div>
	<section id="mainContent" class="frame-main-cont frame-main-cont-first"
		role="main" style="top:0;height: 100%">
		<div id="dvContainer">
			<iframe id="knowledgeSearchIframe"
				src="knowledge2/knowledgeSearch2/searchResultView"
				style="width:76%;height:100%;border:none;position: absolute;">
			</iframe>

		</div>
	</section>
</section>
<script type="text/javascript">
	function knowledgeInfoView(id) {
		var tempTitle = "服务交付物详情";
		var tempUrl = "knowledge2/knowledgeSearch2/knowledgeInfoView?id=" + id;
		var options = {
			title : tempTitle,
			contentUrl : tempUrl
		};
		isperp.openDialog(options);
	}

	$("#knowledgeSearchIframe").height($(window).height() - 20);
</script>
